import clr
clr.AddReference('System.Windows.Forms')
clr.AddReference('System.Drawing')

from System.Drawing import Size
from System.Windows.Forms import (
    Application, DockStyle, Form, ScrollBars, 
    TabAlignment, TabControl, TabPage, TextBox
)

class MainForm(Form):
    "The main form for the application"
    def __init__(self):
        self.Text = 'MultiDoc Editor'
        self.MinimunSize = Size(150, 150)
        
        self.tabControl = TabControl()
        self.tabControl.Dock = DockStyle.Fill
        self.tabControl.Alignment = (TabAlignment.Bottom)
        self.Controls.Add(self.tabControl)
        
        self.addTabPage("New Page" , "")
        
    def addTabPage(self, label, text):
        tabPage = TabPage()
        tabPage.Text = label
        
        textBox = TextBox()
        textBox.Multiline = True
        textBox.Dock = DockStyle.Fill
        textBox.ScrollBars = ScrollBars.Vertical
        textBox.AcceptsReturn = True
        textBox.AcceptsTab = True
        textBox.WordWrap = True
        textBox.Text = text
        
        tabPage.Controls.Add(textBox)
        
        self.tabControl.TabPages.Add(tabPage)

Application.EnableVisualStyles()
Application.Run(MainForm())